import request from '@/utils/request'

const api_name = '/orderService/order';

export default {
  //分页条件查询订单
  pageOrderList(current, limit, orderQuery) {
    return request({
      url: `${api_name}/pageOrderList/${current}/${limit}`,
      method: 'post',
      data: orderQuery
    })
  },

  //根据id查询
  getOrder(id) {
    return request({
      url: `${api_name}/getById/${id}`,
      method: 'get'
    })
  },

  //根据id删除
  removeOrderById(id) {
    return request({
      url: `${api_name}/removeById/${id}`,
      method: 'delete'
    })
  },
}
